<!--<h1>Pick a user to play with</h1>-->
<table>
  <tr>
    <th class="play">Opponent</th>
  </tr>

<% @user.each do |user| %>
  <tr>
    <td><%=h user.name %></td>
    <td><%= button_to "Show Team", :controller => 'team', :action => 'show_team', :id => user %></td>
	<td><%= button_to "Pick This User", :action => 'add_player_2', :id => user %></td>
  </tr>
<% end %>
</table>

<br />
	<div id="first-player">
		<%= render :partial => "show", :object => @teams.get_team(0) %>
	</div>

<% if @teams.get_team(1) != nil %>
<div id="second-player">
	<% hidden_div_if(@teams.get_team(1) == nil, :id => "team") do %>
		<%= render :partial => "show_player_2", :object => @teams.get_team(1) %>
	<% end %>
	</div>
<% end %>